<table id ='ListOfComponents' "cellspacing="0" class="sf_admin_list">
            <thead>
            <tr>
                  <th id="sf_admin_list_th_productcode" width="20%">Product Code
                          </th>
                  <th id="sf_admin_list_th_description" width="30%">Description
                          </th>
                  <th id="sf_admin_list_th_description" width="10%">Brand
                          </th>
                  <th id="sf_admin_list_th_description" width="10%">Unit
                          </th>
                  <th id="sf_admin_list_th_description" width="10%">Exp Dlv Date
                          </th>
                  <th id="sf_admin_list_th_description">Qty to request</th>
            </tr>
            </thead>
<?php
if ($componentsList && count($componentsList)){
    foreach($componentsList as $key=>$components) { 
    $component= ComponentPeer::retrieveByPK($components->getComponentId());
?>
    
    <tr class="sf_admin_row_<?php echo $key % 2; ?>">
        <input type="hidden" name="rowIds[]" id ="rowIds"  class = "ExistComponents" value="<? echo $component->getId()?>"/>
        <input type="hidden" name="expdates[]" id ="expdates" value ="<?echo $components->getDate()?>">
        <td ><?php echo $component->getProductcode() ?></td>
        <td ><?php echo $component->getDescription() ?></td>
        <td ><?php echo $component->getBrand() ?></td>
        <td ><?php echo $component->getComponentunit()?></td>
        <td><?echo $components->getDate()?></td>
        <td><input type="text" name="qtys[]" id ="qtys" size="10" value ="<?echo $components->getQty1()?>"></td>
    </tr>
<?php }
}?>
</table>